<style>

label { position: absolute; text-align:right; width:130px; }
input, textarea, select {margin-left: 140px; }
label.check, label.radio { position:relative; text-align:left; }

.labelclass
{
	font-weight: bold;
}
</style>


<?php 



echo validation_errors();


echo form_open($this->uri->uri_string());

$label_attributes = array(
    'class' => 'labelclass',
    'style' => 'color: #000;',
);



echo form_label("First Name:","",$label_attributes) . form_input("first_name",set_value("first_name")) . "<BR>";
echo form_label("Last Name:","",$label_attributes) . form_input("last_name",set_value("last_name")) . "<BR>";
echo form_label("Age:","",$label_attributes) . form_input("age") . "<BR>";
echo form_label("Grade Level:","",$label_attributes) . form_input("grade_level") . "<BR>";
echo form_label("Address 1:","",$label_attributes) . form_input("address_1") . "<BR>";
echo form_label("Address 2:","",$label_attributes) . form_input("address_2") . "<BR>";
echo form_label("City:","",$label_attributes) . form_input("city") . "<BR>";
echo form_label("State:","",$label_attributes) . form_dropdown("state",$this->state->getStates()) . "<BR>";
echo form_label("Zipcode:","",$label_attributes) . form_input("zipcode") . "<BR>";

echo form_label("Hmm:","",$label_attributes) . form_input("hmm") . "<BR>";
echo form_label("My New Field:","",$label_attributes) . form_input("new_field") . "<BR>";

echo form_submit("submit","Submit");

echo form_close();


?>